import request from "../../utils/requistApi.js";

//获取头像列表
export function avatars(data) {
    return request({
        url: `/dpl/v2/user/avatars`,
        method: "get",
        data: data,
    });
}
//更新头像
export function updataAvatars(data) {
    return request({
        url: `/dpl/v2/user/avatars`,
        method: "put",
        data: data,
    });
}
//获取个人信息（short）
// export function getShort(data) {
//     return request({
//         url: `/dpl/v2/user/profile/short`,
//         method: "get",
//         data: data,
//     });
// }
//获取手机验证码
export function getPhoneCode(data) {
    return request({
        url: "/dpl/v2/auth/verifyCode/phone",
        method: "post",
        data: data,
    });
}

// 获取个人信息（full）
export function getFull(data) {
    return request({
        url: `/dpl/v2/user/profile/full`,
        method: "get",
        // data: data,
    });
}

// 查找我的喜欢的帖子
export function meLike(data) {
    return request({
        url: `/dpl/v2/funplay/me/like/${data.current}`,
        method: "get",
        data: {
            order: data.order
        }
    });
}

// 查找我的主页
export function otherinfoMe(data) {
    return request({
        url: `/dpl/v2/funplay/meinfo/short`,
        method: "get",
    });
}

// 其他用户的主页
export function otherinfoQt(data) {
    return request({
        url: `/dpl/v2/funplay/otherinfo/short/${data}`,
        method: "get",
    });
}

// 获取关注列表
export function followGZ(data) {
    return request({
        url: `/dpl/v2/funfollow/follow/${data.current}`,
        method: "get",
        data: {
            followName: data.fansName,
        }
    });
}
// 获取推荐用户列表
export function followTJ(data) {
    return request({
        url: `/dpl/v2/funfollow/recommenduser/${data}`,
        method: "get",
    });
}
// 获取粉丝列表
export function followFS(data) {
    return request({
        url: `/dpl/v2/funfollow/fans/${data.current}`,
        method: "get",
        data: {
            fansName: data.fansName,
        }
    });
}
// 查找发布的帖子
export function funplayList(data) {
    return request({
        url: `/dpl/v2/funplay/list/${data.usercode}/${data.current}`,
        method: "get",
        data: {
            order: data.order,
        }
    });
}